package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName train_questions
 */
@TableName(value ="train_questions")
public class TrainQuestions implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 试题代码
     */
    private String quecode;

    /**
     * 试题标题
     */
    private String quetitle;

    /**
     * 试题内容
     */
    private String quevalue;

    /**
     * 试题类型
     */
    private String quetype;

    /**
     * 试题分数
     */
    private Integer quescore;

    /**
     * 难易程度 0简单、1正常、2稍难、3难
     */
    private Integer quedifficulty;

    /**
     * 是否训练试题 0否 1是
     */
    private Integer istrain;

    /**
     * 是否被引用 0否 1是
     */
    private Integer isquote;

    /**
     * 顺序号
     */
    private Integer orderindex;

    /**
     * 前置分类
     */
    private String preclass;

    /**
     * 后置分类 0校验试题 1单选 2多选 3问答
     */
    private Integer postclass;

    /**
     * 试题哈希值
     */
    private String quehashcode;

    /**
     * 试题Id
     */
    private Integer queid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 试题代码
     */
    public String getQuecode() {
        return quecode;
    }

    /**
     * 试题代码
     */
    public void setQuecode(String quecode) {
        this.quecode = quecode;
    }

    /**
     * 试题标题
     */
    public String getQuetitle() {
        return quetitle;
    }

    /**
     * 试题标题
     */
    public void setQuetitle(String quetitle) {
        this.quetitle = quetitle;
    }

    /**
     * 试题内容
     */
    public String getQuevalue() {
        return quevalue;
    }

    /**
     * 试题内容
     */
    public void setQuevalue(String quevalue) {
        this.quevalue = quevalue;
    }

    /**
     * 试题类型
     */
    public String getQuetype() {
        return quetype;
    }

    /**
     * 试题类型
     */
    public void setQuetype(String quetype) {
        this.quetype = quetype;
    }

    /**
     * 试题分数
     */
    public Integer getQuescore() {
        return quescore;
    }

    /**
     * 试题分数
     */
    public void setQuescore(Integer quescore) {
        this.quescore = quescore;
    }

    /**
     * 难易程度 0简单、1正常、2稍难、3难
     */
    public Integer getQuedifficulty() {
        return quedifficulty;
    }

    /**
     * 难易程度 0简单、1正常、2稍难、3难
     */
    public void setQuedifficulty(Integer quedifficulty) {
        this.quedifficulty = quedifficulty;
    }

    /**
     * 是否训练试题 0否 1是
     */
    public Integer getIstrain() {
        return istrain;
    }

    /**
     * 是否训练试题 0否 1是
     */
    public void setIstrain(Integer istrain) {
        this.istrain = istrain;
    }

    /**
     * 是否被引用 0否 1是
     */
    public Integer getIsquote() {
        return isquote;
    }

    /**
     * 是否被引用 0否 1是
     */
    public void setIsquote(Integer isquote) {
        this.isquote = isquote;
    }

    /**
     * 顺序号
     */
    public Integer getOrderindex() {
        return orderindex;
    }

    /**
     * 顺序号
     */
    public void setOrderindex(Integer orderindex) {
        this.orderindex = orderindex;
    }

    /**
     * 前置分类
     */
    public String getPreclass() {
        return preclass;
    }

    /**
     * 前置分类
     */
    public void setPreclass(String preclass) {
        this.preclass = preclass;
    }

    /**
     * 后置分类 0校验试题 1单选 2多选 3问答
     */
    public Integer getPostclass() {
        return postclass;
    }

    /**
     * 后置分类 0校验试题 1单选 2多选 3问答
     */
    public void setPostclass(Integer postclass) {
        this.postclass = postclass;
    }

    /**
     * 试题哈希值
     */
    public String getQuehashcode() {
        return quehashcode;
    }

    /**
     * 试题哈希值
     */
    public void setQuehashcode(String quehashcode) {
        this.quehashcode = quehashcode;
    }

    /**
     * 试题Id
     */
    public Integer getQueid() {
        return queid;
    }

    /**
     * 试题Id
     */
    public void setQueid(Integer queid) {
        this.queid = queid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TrainQuestions other = (TrainQuestions) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getQuecode() == null ? other.getQuecode() == null : this.getQuecode().equals(other.getQuecode()))
            && (this.getQuetitle() == null ? other.getQuetitle() == null : this.getQuetitle().equals(other.getQuetitle()))
            && (this.getQuevalue() == null ? other.getQuevalue() == null : this.getQuevalue().equals(other.getQuevalue()))
            && (this.getQuetype() == null ? other.getQuetype() == null : this.getQuetype().equals(other.getQuetype()))
            && (this.getQuescore() == null ? other.getQuescore() == null : this.getQuescore().equals(other.getQuescore()))
            && (this.getQuedifficulty() == null ? other.getQuedifficulty() == null : this.getQuedifficulty().equals(other.getQuedifficulty()))
            && (this.getIstrain() == null ? other.getIstrain() == null : this.getIstrain().equals(other.getIstrain()))
            && (this.getIsquote() == null ? other.getIsquote() == null : this.getIsquote().equals(other.getIsquote()))
            && (this.getOrderindex() == null ? other.getOrderindex() == null : this.getOrderindex().equals(other.getOrderindex()))
            && (this.getPreclass() == null ? other.getPreclass() == null : this.getPreclass().equals(other.getPreclass()))
            && (this.getPostclass() == null ? other.getPostclass() == null : this.getPostclass().equals(other.getPostclass()))
            && (this.getQuehashcode() == null ? other.getQuehashcode() == null : this.getQuehashcode().equals(other.getQuehashcode()))
            && (this.getQueid() == null ? other.getQueid() == null : this.getQueid().equals(other.getQueid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getQuecode() == null) ? 0 : getQuecode().hashCode());
        result = prime * result + ((getQuetitle() == null) ? 0 : getQuetitle().hashCode());
        result = prime * result + ((getQuevalue() == null) ? 0 : getQuevalue().hashCode());
        result = prime * result + ((getQuetype() == null) ? 0 : getQuetype().hashCode());
        result = prime * result + ((getQuescore() == null) ? 0 : getQuescore().hashCode());
        result = prime * result + ((getQuedifficulty() == null) ? 0 : getQuedifficulty().hashCode());
        result = prime * result + ((getIstrain() == null) ? 0 : getIstrain().hashCode());
        result = prime * result + ((getIsquote() == null) ? 0 : getIsquote().hashCode());
        result = prime * result + ((getOrderindex() == null) ? 0 : getOrderindex().hashCode());
        result = prime * result + ((getPreclass() == null) ? 0 : getPreclass().hashCode());
        result = prime * result + ((getPostclass() == null) ? 0 : getPostclass().hashCode());
        result = prime * result + ((getQuehashcode() == null) ? 0 : getQuehashcode().hashCode());
        result = prime * result + ((getQueid() == null) ? 0 : getQueid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", quecode=").append(quecode);
        sb.append(", quetitle=").append(quetitle);
        sb.append(", quevalue=").append(quevalue);
        sb.append(", quetype=").append(quetype);
        sb.append(", quescore=").append(quescore);
        sb.append(", quedifficulty=").append(quedifficulty);
        sb.append(", istrain=").append(istrain);
        sb.append(", isquote=").append(isquote);
        sb.append(", orderindex=").append(orderindex);
        sb.append(", preclass=").append(preclass);
        sb.append(", postclass=").append(postclass);
        sb.append(", quehashcode=").append(quehashcode);
        sb.append(", queid=").append(queid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}